/**
 * <p>Title: ChannelBusinessInterceptor.java</p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2015, zj7687362@gmail.com All Rights Reserved. </p>
 * <p>Company: www.jcore.cn</p>
 * @author keep_trying
 * @date 2016年8月9日9:58:25
 */
package com.cn.spring.web.interceptor;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.HandlerInterceptor;
import org.springframework.web.servlet.ModelAndView;

/**
 * <p>Title: ChannelBusinessInterceptor.java</p>
 * <p>Description: </p>
 * @author keep_trying
 * @date 2016年8月9日9:58:50
 */
public class ChannelBusinessInterceptor implements HandlerInterceptor {

	public boolean preHandle(HttpServletRequest request,
			HttpServletResponse response, Object handler) throws Exception {
		
		System.out.println("preHandle...");
		
		return true;
	}

	public void postHandle(HttpServletRequest request,
			HttpServletResponse response, Object handler,
			ModelAndView modelAndView) throws Exception {
		
	}

	public void afterCompletion(HttpServletRequest request,
			HttpServletResponse response, Object handler, Exception ex)
			throws Exception {
		
		System.out.println("afterCompletion...");
		
	}
	
}
